nodejs cicd azure · Actions · GitHub Marketplace · GitHub |
您所在的位置:网站首页 › cicd with github actions to deploy on github pages › nodejs cicd azure · Actions · GitHub Marketplace · GitHub |
Node.js CI/CD for Azure Web Apps
This Github Action builds, tests, and deploys a Node.js application to Azure Web Apps. The action requires an Azure service principal with the appropriate permissions. Inputs node-versionThe version of Node.js to use for building and testing. Default is 14.x. app-nameRequired The name of the Azure Web App to deploy to. packageRequired The path to the application package to deploy. environmentThe name of the environment to deploy to. Default is staging. service-principalRequired The Azure service principal to use for authentication. tenant-idRequired The Azure Active Directory tenant ID associated with the service principal. subscription-idRequired The Azure subscription ID associated with the service principal. custom-test-commandThe custom command to run for testing the application. Default is npm test. custom-deploy-scriptThe custom script to use for deploying the application. Default is an empty string. additional-deploy-settingsAdditional deployment settings to pass to the deployment script. Default is an empty string. Outputs deployment-urlsThe URLs of the deployed application. deployment-statusThe status of the deployment. Example Usage name: Deploy to Azure Web App on: push: branches: - main jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Login to Azure uses: azure/login@v1 with: creds: ${{ secrets.AZURE_CREDENTIALS }} - name: Deploy to Azure Web App uses: my-org/my-repo/deploy-to-azure@v1 with: node-version: '14.x' app-name: 'my-web-app' package: './dist' service-principal: ${{ secrets.AZURE_SERVICE_PRINCIPAL }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |